package mest.dao.hws;

import mest.entity.plan_workfinish;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface plan_workfinishMapper {
    int deleteByPrimaryKey(@Param("theirDb") String theirDb,@Param("id")Integer id);

    void insert( Map<String,Object> record);

    int insertSelective(@Param("theirDb") String theirDb,@Param("record")plan_workfinish record);

    plan_workfinish selectByPrimaryKey(@Param("theirDb") String theirDb,@Param("id")Integer id);

    List<Map<String,Object>> selectAll(@Param("theirDb") String theirDb,@Param("limit") Integer limit,@Param("page") Integer page,@Param("finishStatus") Integer finishStatus);

    int selectcount(@Param("theirDb") String theirDb,@Param("finishStatus")Integer finishStatus);

    int updateByPrimaryKeySelective(@Param("theirDb") String theirDb,@Param("record")plan_workfinish record);

    int updateByPrimaryKey(@Param("theirDb") String theirDb,@Param("record")plan_workfinish record);


    //查询完工内容所需的材料
    List<Map<String,Object>> select_ppw(@Param("theirDb") String theirDb,@Param("poId")String poId);


    //查询完工内容的所有工序
    List<Map<String,Object>> select_ppww(@Param("theirDb") String theirDb,@Param("wfId")String wrId);
}